home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
serial
/
callback.001
/
callback~
/
callback
/
cb
/
cb.c
< prev
next >
Wrap
C/C++ Source or Header
|
1996-07-23
|
620b
|
25 lines
#include "cb.h"
int main(int argc, char **argv)
{
logging(&argc, &argv); /* determine log-request from -l flag */
startup(argc, argv); /* initial startup:
read the setupfile, determine the name of
the tty-line to be used
*/
if (argc == 1) /* parsing succeeded here */
usage();
argv1len = strlen(argv[1]);
use_ttyline(argv[2]); /* determine the line, usually in argv[2] */
task(argc, argv); /* do the appropriate task */
return(0);
}